﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<dynamic>" %>
<% OrdersPartner obj = (OrdersPartner)ViewData.Model;  %>
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="edit">
    <tr>
        <td class="label required">
            Mã sản phẩm <span>*</span>
        </td>
        <td class="input"><% if (ViewData.Model == null)
               {
                   Response.Write(Html.TextBox("PartnerID", "", new { @maxlength = "50", @style = "width:150px" }));
               }
               else
               {
                   Response.Write(Html.TextBox("PartnerID", obj.PartnerID, new { @maxlength = "50", @style = "width:150px" }));
                    Response.Write(Html.Hidden("ID",obj.ID));
               }
            %>
            </td>
    </tr>
    <tr>
        <td class="label">
            Giá
        </td>
        <td class="input"><% if (ViewData.Model == null)
               {
                   Response.Write(Html.TextBox("Price", "", new { @maxlength = "100", @style = "width:150px" }));
               }
               else
               {
                   Response.Write(Html.TextBox("Price", obj.Price, new { @maxlength = "100", @style = "width:150px" }));                   
               }
            %></td>
    </tr>
     <tr>
        <td class="label">
            Số Lượng
        </td>
        <td class="input"><% if (ViewData.Model == null)
               {
                   Response.Write(Html.TextBox("Quality", "", new { @maxlength = "100", @style = "width:150px" }));
               }
               else
               {
                   Response.Write(Html.TextBox("Quality", obj.Quality, new { @maxlength = "100", @style = "width:150px" }));                   
               }
            %></td>
    </tr>
    <tr>
        <td class="label">
            Chiết Khấu
        </td>
        <td class="input"><% if (ViewData.Model == null)
               {
                   Response.Write(Html.TextBox("Discount", "", new { @maxlength = "4", @style = "width:150px" }));
               }
               else
               {
                   Response.Write(Html.TextBox("Discount", obj.Discount, new { @maxlength = "4", @style = "width:150px" }));                   
               }
            %></td>
    </tr>
    <tr>
        <td class="label">
            Tình Trạng
        </td>
        <td class="input"><% if (ViewData.Model == null)
               {
               }
               else
               {
                   Response.Write(Html.DropDownList("Status",null,"Chọn Tình Trạng"));                   
               }
            %></td>
    </tr>
    <tr>
        <td></td>
        <td>
            <input type="submit" class="save" value="" alt="" />
            <input type="button" class="cancel" value="" alt="" onclick="JS_LIB.closePopup()" />
        </td>
    </tr>
</table>
